package com.biz.primus.ms.payment.event;

import com.biz.primus.ms.base.event.LocalEvent;
import com.biz.primus.ms.payment.dao.po.PaymentOrder;
import lombok.ToString;

/**
 * 创建一个新 PaymentChannel 的本地事件
 * 本地事件只会在当前应用消费
 */
@ToString
public class NewPaymentChannelEvent extends LocalEvent {

    /**
     * Create a new ApplicationEvent.
     *
     * @param source the object on which the event initially occurred (never {@code null})
     */
    private PaymentOrder paymentOrder;

    public NewPaymentChannelEvent(Object source, PaymentOrder paymentOrder) {
        super(source);
        this.paymentOrder = paymentOrder;
    }
}
